Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #52 #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

burgyl
Copy link

@burgyl burgyl commented Jan 24, 2024

Fix issue Cannot find name 'ReadableStreamDefaultReadResult' #52

let result: ReadableStreamDefaultReadResult<Uint8Array>;

https://github.com/Azure/fetch-event-source/blob/1589ec1f49d96450f3bae9adb20ab4a5b3deb204/src/parse.ts#L24C61-L24C61

> @microsoft/[email protected] build
> tsc && tsc -p tsconfig.esm.json

src/parse.ts:24:17 - error TS2552: Cannot find name 'ReadableStreamDefaultReadResult'. Did you mean 'ReadableStreamDefaultReader'?

24     let result: ReadableStreamDefaultReadResult<Uint8Array>;
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:11665:13
    11665 declare var ReadableStreamDefaultReader: {
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'ReadableStreamDefaultReader' is declared here.


Found 1 error in src/parse.ts:24

@burgyl burgyl changed the title Fix issue #52 from the Azure repo ReadableStreamDefaultReadResult Fix issue #52 Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant